﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using OC.Common.Entity;

namespace OC.Common.Interface
{
    public interface IProcessConfig
    {
        /// <summary>
        /// 根据流程名称和步骤名称判断是否存在该配置信息
        /// </summary>
        /// <param name="ProcessId"></param>
        /// <param name="StepID"></param>
        /// <returns></returns>
        bool Exists(string ProcessName, string StepName);
        /// <summary>
        /// 根据流程名称和步骤名称获取对象
        /// </summary>
        /// <param name="ProcessId"></param>
        /// <param name="StepID"></param>
        /// <returns></returns>
        ProcessConfigEntity GetProcessConfig(string ProcessName, string StepName);

        /// <summary>
        /// 添加流程配置信息
        /// </summary>
        /// <param name="entity"></param>
        void InsertProcessConfig(ProcessConfigEntity entity);

        /// <summary>
        /// 修改流程配置信息
        /// </summary>
        /// <param name="entity"></param>
        void UpdateProcessConfig(ProcessConfigEntity entity);
    }
}
